/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kma.summer2012.dao;

import java.sql.SQLException;
import java.util.Collection;

public interface DAO<T> {
    public void add(T o) throws SQLException;

    public void update(T o) throws SQLException;

    public T getById(int id) throws SQLException;

//    public T getByName(String name) throws SQLException;

    public Collection<T> getAll() throws SQLException;

    public void delete(T o) throws SQLException;
}
